keys.php

<?php
return array (
  'Regex.infoArray' => '$info = [
    \'matchList\'=>$matches, // Array of all matches
    \'lineStart\' => -1, // (not implemented, @TODO) Line in file/text that your match starts on
    \'lineEnd\' => -1,   // (not implemented, @TODO) Line in file/text that your match ends on
    \'text\' => $text,   //
    \'regIndex\' => null,
];',
  'key' => '` and `',
  'Regex.invoke' => 'public function onSourceFileFound($file){
    $this->match(\'WrappedGenericBlock\',$file->content());
}',
  'Technical.deleteExistingDocs.sanityCheck' => 'if (!$dryRun&&$this->configs[\'deleteExistingDocs\'][0]===true){
    $root = $this->dir;
    $root = realpath($root);
    $docsDir = $this->dir.\'/\'.$this->configs[\'dir.docs\'][0];
    $docsDir = realpath($docsDir);

    // To avoid removing things like /home/user/ and /var/www/ or shorter paths
    // My assumption for shortest path is: /home/user/asubdir/projectdirs
    // Projects COULD be at /home/user/projectdir, but mine likely never will be... & I think that seems silly.
    // I expect Windows to have even longer base paths?
    $rootSlashArray = explode(\'/\', str_replace(\'\\\\\', \'/\', $root));
    $docSlashArray = explode(\'/\', str_replace(\'\\\\\',\'/\', $docsDir));
    if (strlen($docsDir)>strlen($root)
        && $root!=\'\'
        && count($rootSlashArray)>3
        && count($docSlashArray) > count($rootSlashArray)
        && strpos($docsDir, $root)===0
    ) {
        \\Tlf\\Scrawl\\Utility::DANGEROUS_removeNonEmptyDirectory($docsDir);
    }
}',
)
?>